package com.mdz.nc.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孟德志
 * @since 2020-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ks_worker")
public class KsWorker extends Model<KsWorker> {

    private static final long serialVersionUID=1L;

    @TableId(value = "worker_id", type = IdType.AUTO)
    private Integer workerId;

    @TableField("name")
    private String name;

    @TableField("gender")
    private String gender;

    @TableField("password")
    private String password;


    @Override
    protected Serializable pkVal() {
        return this.workerId;
    }

}
